<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <input
      type="checkbox"
      id="checkbox"
      checked
      style="color: red; font-size: 12px"
    />
    <script>
      const checkbox = document.getElementById("checkbox");

      console.log(checkbox.style.color);
      console.log(checkbox.style.fontSize);
      console.log(checkbox.style["font-size"]);
    </script>
  </body>
</html>
